<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Appointment extends Model{
    protected $guarded = [

    ];

    protected $table = 'appointments';

    public function saveInfo($data){
        return $this->create($data);
    }

    public function getInfoList($field = "",$val=""){
        if($field == ""){
            return $this->get();
        }else{
            return $this->where($field,'=',$val)->get();
        }


    }
}
